
//Setup MHQ==============================================================
	//extendMHQ = "Land_Cargo_House_V3_F" createvehicle (position shadow);
	//radioTower = "Land_Communication_F" createvehicle (position shadow);
	MHQ_VAS attachto [extendMHQ, [-7.4,2.3,-0.75]];
	//detach MHQ_VAS;
	
//=============================OBJECTICE HANDLING=================================
	if (isNil "objArray") then { 
		objArray = [obj1, obj2, obj3];
	}else{
		if (count objArray == 0) then {
			hint "EW_debug_initVar_ZeroObjectives (All Missions Completed)";
		};
	};	
	_randomobj = objArray select floor(random(count objArray));
	[_randomobj]execVM "EW_Server_Side\Blank SS mission files\objGenerator.sqf";	

//MHQ tests-----------------------------------
	if (isNil ("MHQON")) then {
		MHQON = 0;
		publicVariable "MHQON";
	};
	if (isNil "deployMHQ") then { 
		deployMHQ = 0;
		publicVariable "deployMHQ";
	};
	if (isNil "packupMHQ") then { 
		packupMHQ = 0;
		publicVariable "packupMHQ";
	};

//EH tests------------------------------------
	"deployMHQ" addPublicVariableEventHandler {
		//MHQ_BOX setVariable ['BIS_disabled_Door_1', 0];
		//MHQ_BOX setVariable ['BIS_disabled_Door_2', 0];
		if (MHQ_BOX animationphase 'door_1_rot' != 1) then {	
			MHQ_BOX animate ["door_1_rot", 1];
		};
		if (MHQ_BOX animationphase 'door_2_rot' != 1) then {
			MHQ_BOX animate ["door_2_rot", 1];
		};
		//sleep 2;
		//extendMHQ = "Land_Cargo_House_V3_F" createvehicle (position MHQ_BOX);
		extendMHQ attachto [MHQ_BOX, [-9.1,-1,-1]];
		MHQ_VAS attachto [extendMHQ, [0,0,-0.72]];
		detach MHQ_VAS;
		detach extendMHQ;
		respawn_west_MHQ = createMarker ["respawn_west_MHQ", position extendMHQ];
		"respawn_west_MHQ" setMarkerText "MHQ";
		"respawn_west_MHQ" setMarkerSize [0.5, 0.5];
		"respawn_west_MHQ" setMarkerPos getPos extendMHQ;
		"respawn_west_MHQ" setMarkerShape "ICON";
		"respawn_west_MHQ" setMarkerType "hd_destroy";
		"respawn_west_MHQ" setMarkerColor "ColorBlue";
		MHQON = 1;
		publicVariable "MHQON";
	};

	"packupMHQ" addPublicVariableEventHandler {
		if (MHQ_BOX animationphase 'door_1_rot' != 1) then {	
			MHQ_BOX animate ["door_1_rot", 1];
		};
		if (MHQ_BOX animationphase 'door_2_rot' != 1) then {
			MHQ_BOX animate ["door_2_rot", 1];
		};
		//sleep 2;
		extendMHQ attachto [shadow, [-7.4,2.3,-0.55]];
		MHQ_VAS attachto [shadow, [-7.4,2.3,-0.55]];
		deleteMarker "respawn_west_MHQ";
		//deploy_MHQ = MHQ_BOX addAction ["Deploy MHQ", "ENG\DeployMHQ.sqf"];
		if (!(MHQ_BOX animationphase 'door_1_rot' == 0)) then {	
			MHQ_BOX animate ["door_1_rot", 0];
		};
		if (!(MHQ_BOX animationphase 'door_2_rot' == 0)) then {
			MHQ_BOX animate ["door_2_rot", 0];
		};
		MHQON = 0;
		publicVariable "MHQON";
	};